package com.yykj.common.util;

/**
 * Created by chendg on 2021/9/9 0009.
 */
public class PageRequestUtil {

	public static Integer getPage(Integer page) {
		if (page != null && page > 0) {
			return page - 1;
		}
		else {
			return 0;
		}
	}

	public static Integer getSize(Integer size) {
		if (size != null && size > 0) {
			return size;
		}
		else {
			return 10;
		}
	}

}
